
package com.bstek.urule.console.servlet.diagram;

import java.util.List;

/**
 * @author Jacky.gao
 * @since 2015年1月6日
 */
public class Diagram {
    private List<Edge> edges;
    private NodeInfo rootNode;
    private int width;
    private int height;

    public Diagram(List<Edge> edges, NodeInfo rootNode) {
        this.edges = edges;
        this.rootNode = rootNode;
    }

    public List<Edge> getEdges() {
        return edges;
    }

    public void setEdges(List<Edge> edges) {
        this.edges = edges;
    }

    public NodeInfo getRootNode() {
        return rootNode;
    }

    public void setRootNode(NodeInfo rootNode) {
        this.rootNode = rootNode;
    }

    public int getWidth() {
        return width;
    }

    public void setWidth(int width) {
        this.width = width;
    }

    public int getHeight() {
        return height;
    }

    public void setHeight(int height) {
        this.height = height;
    }
}
